<div class="users form">
<h1>Đăng kí</h1>
<?php
echo $this->Form->create('User',array('type'=>'file'));
echo $this->Form->input('User.username');
echo $this->Form->input('User.password');
echo $this->Form->input('User.email');
//echo $this->form->input('User.created');
echo $this->Form->input('Profile.name');
echo '  Avatar';
echo $this->Form->file('Profile.avatar',array('type'=>'file','label' => 'Avatar'));
echo $this->Form->input('Profile.introduced');
echo $this->Form->input('User.created');
echo $this->Form->end('Đăng kí');

?>
</div>